package com.avocado.base.service;


import com.avocado.base.dto.resources.ResourcesAddDto;

import com.avocado.base.dto.resources.ResourcesEditDto;

import com.avocado.base.enums.ResourcesType;
import com.avocado.base.vo.ResourcesAntdTree;

import java.util.List;

public interface ResourcesService {
	
	
	/**
	 * 添加
	 * @param t
	 * @return
	 */
	Long add(ResourcesAddDto t);
	
	/**
	 * 更新
	 * @param t
	 * @return
	 */
	void update(ResourcesEditDto t);
	
	/**
	 * 删除
	 * @param id
	 * @return
	 */
	Boolean deleteById(Long id);
	

	List<ResourcesAntdTree> getTree(ResourcesType resourcesType);
	

	List<ResourcesAntdTree> getTree(ResourcesType resourcesType,String userName);


	List<ResourcesAntdTree> getCheckBoxTree(ResourcesType resourcesType,Long roleId);
	

}
